package com.ruicar.afs.cloud.product;

import com.ruicar.afs.cloud.common.core.security.annotation.EnableAfsFeignClients;
import com.ruicar.afs.cloud.common.core.security.annotation.EnableAfsResourceServer;
import com.ruicar.afs.cloud.common.job.annotation.EnableAfsCloudJob;
import com.ruicar.afs.cloud.common.swagger.annotation.EnableAfsSwagger2;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * 产品配置
 */
@EnableAfsSwagger2
@SpringCloudApplication
@EnableAfsFeignClients
@EnableAfsResourceServer(details = true)
@Configuration
@EnableDiscoveryClient
@EnableAfsCloudJob
@ComponentScan({"com.ruicar.afs.cloud.product","com.ruicar.afs.cloud.channel","com.ruicar.afs.cloud.afscase.dispatch","com.ruicar.afs.cloud.bizcommon", "com.ruicar.afs.cloud.parameter.commom", "com.ruicar.afs.cloud.workflow", "com.ruicar.afs.cloud.image"})
public class AfsProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(AfsProductApplication.class, args);
    }
}